package com.itgungnir.designpattern.observer.custom;

/**
 * 观察者接口
 */
public abstract class Observer {
	protected String name;
	protected Object thing;

	public void update(Object thing) {
		this.thing = thing;
		System.out.println(this.name + "收到了消息：" + thing.toString());
	}

	public abstract void display();
}